package cn.sheep.dmp.beans

import org.apache.spark.rdd.RDD
import org.apache.spark.sql.SQLContext
import org.apache.spark.{SparkConf, SparkContext}

object tear {
  def main(args: Array[String]): Unit = {
    val conf = new SparkConf()
      .setMaster("local[*]")
      .setAppName(tear.getClass.getSimpleName)
    val sc = new SparkContext(conf)
    val sql = new SQLContext(sc)

    import sql.implicits._

    val int: RDD[Int] = sc.makeRDD(Array(1,2,3,65,48,5,8))
    int.toDF()




  }
}
